#include("/WEB-INF/admin/common/header.html")
<ul class="layui-nav layui-bg-cyan dataUrlHeader" lay-filter="check-item">
  <li class="layui-nav-item"><a href="javascript:;">14000B</a></li>
  <li class="layui-nav-item layui-this"><a data-url="#(BASE_PATH)/normal_user/mydevice/realTimeData">实时数据</a></li>
  <li class="layui-nav-item"><a data-url="#(BASE_PATH)/normal_user/mydevice/historyData">历史数据</a></li>
  <li class="layui-nav-item">
    <a href="javascript:;">数据分析</a>
    <dl class="layui-nav-child">
      <dd><a data-url="javascript:;">平均值分析</a></dd>
      <dd><a data-url="javascript:;">峰值分析报告</a></dd>
      <dd><a data-url="javascript:;">报警记录统计</a></dd>
    </dl>
  </li>
</ul>


<div class="dataUrlIframe">
	<iframe src="#(BASE_PATH)/admin/manageCenter/msg/alarmmsg"></iframe>
</div>

<script>

	
layui.use(["jquery",'element'], function(){
  var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块
  var 	$=layui.jquery;
  
  	  element.on('nav(check-item)', function(data){
  	    //console.log(data[0].dataset.url);
  	  });
  	  
  		$('.dataUrlHeader a').on('click', function() {						 	 
  		    var url =$(this).attr('data-url');
   	   $(".dataUrlIframe iframe").attr('src',url);  		    
		  }); 
  		
  		
});
</script>
</html>

